import http from '@/utils/request'

export function queryCourse(params){
    return http.post('/course/list',{...params})
}

export function getCourseById(id){
    return http.get(`/course/${id}`)
}

export function addCourse(params){
    return http.post('/course/add',{...params})
}

export function updateCourse(params){
    return http.put('/course/update',{...params})
}